home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_x / xcoral16.zip / PROC_DIC.H < prev    next >
C/C++ Source or Header  |  1993-01-15  |  2KB  |  73 lines

  1. /*
  2. ** Copyright 1989, 1992 by Lionel Fournigault
  3. **
  4. ** Permission to use, copy, and distribute for non-commercial purposes,
  5. ** is hereby granted without fee, providing that the above copyright
  6. ** notice appear in all copies and that both the copyright notice and this
  7. ** permission notice appear in supporting documentation.
  8. ** The software may be modified for your own purposes, but modified versions
  9. ** may not be distributed.
  10. ** This software is provided "as is" without any expressed or implied warranty.
  11. **
  12. **
  13. */
  14.  
  15. #ifndef PROCDICT_H
  16. #define PROCDICT_H
  17.  
  18. /*------------------------------------------------------------------------------
  19. */
  20. enum ProcType {
  21.     UNKNOWN_PROC,
  22.     C_PROC,
  23.     CPLUS_PROC
  24. };
  25. typedef enum ProcType ProcType;
  26.  
  27.  
  28. struct ProcRec {
  29.   char*           _name;
  30.   FileRec*        _impl_file;
  31.   LineNumber      _impl_line;
  32.   ProcType        _proc_type;
  33.   struct ProcRec* _next;
  34. };
  35. typedef struct ProcRec ProcRec;
  36.  
  37.  
  38. /*------------------------------------------------------------------------------
  39. //                         Le dictionnaire des procedures
  40. //------------------------------------------------------------------------------
  41. */
  42.  
  43. #define PROC_DICT_SIZE     503
  44.  
  45. extern  ProcRec* proc_dict[];
  46.  
  47. extern  int proc_count;
  48.  
  49.  
  50. /*------------------------------------------------------------------------------
  51. //       Les procedures utilisees manipuler le dictionnaire des procedures
  52. //------------------------------------------------------------------------------
  53. */
  54.  
  55. extern ProcRec*     create_proc   (/* char* proc_name */);
  56.  
  57. extern ProcRec*     find_proc     (/* char* proc_name */);
  58.  
  59.  
  60. /*------------------------------------------------------------------------------
  61. //       La procedure d'initialisation du dictionnaire des procedures
  62. //------------------------------------------------------------------------------
  63. */
  64.  
  65. extern void         init_proc     ();
  66.  
  67.  
  68. #endif  /*  PROCDICT_H  */
  69.  
  70.  
  71.  
  72.  
  73.